#pragma once

#include <iostream>
using namespace std;
class Data
{
	friend ostream& operator<<(ostream& o, Data& data);
	friend istream& operator>>(istream& i, Data& data);
public:
	Data() {};
	Data(int year, int month, int day);

	bool operator<(const Data& data);
	bool operator==(const Data& data);
	Data& operator=(const Data& data);

	Data operator+(int x);
	Data& operator+=(int day);

	Data& operator++();
	Data operator++(int);

	void Print()const;
	void Print();

	Data* operator&();

	const Data* operator&() const;



private:
	int _year = 2025;
	int _month = 1;
	int _day = 1;
};

